package ooad.factory_method;

import ooad.factory.Car;

public class Application {
	public static void main(String[] args) {
		CarFactory factory1=CarFactory.newFactory();
		Car c1=factory1.createCar();
		c1.run();
//		
//		CarFactory factory2=new BMWFactory();
//		Car c2=factory2.createCar();
//		
//		CarFactory factory3=new AudiFactory();
//		Car c3=factory3.createCar();
	}

}
